#ifndef _MT5_ANIMATIN_MGR_H_
#define _MT5_ANIMATIN_MGR_H_

#include "mat_animation.h"
#include "mat_logicboard.h"

#include "mat_define.h"

#include <vector>

struct MATGem;

class MATAnimationManager
{
public:

	
	static MATAnimationManager&		Instance();
	
	void							Tick(float dt);

	MATAnimation*					AddAnimation(	int y, 
													int x, 
													MATGem* pGemType,
													MATAnimation::ANI_TYPE AniType
													);

	MATAnimation*					GetActiveAnimAt(int y, int x);
	bool							IsActiveAnimation(MATAnimation::ANI_TYPE AnimationType);
	void							ForceFinish();
	

protected:


	std::vector<MATAnimation*>		m_Animations;

	
private:
	MATAnimationManager(){};
	~MATAnimationManager();
	

	
};




#endif	// _MT5_ANIMATIN_MGR_H_